package com.sanshi.project.admin.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 物品供应商
 *
 * @author nikon
 * @date 2023-12-08 17:06:22
 */
@Data
@TableName("procure_goods_vendor")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "物品供应商")
public class ProcureGoodsVendorEntity extends Model<ProcureGoodsVendorEntity> {


    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 供应商名称
     */
    @Schema(description = "供应商名称")
    private String name;

    /**
     * 联系人姓名
     */
    @Schema(description = "联系人姓名")
    private String contact;

    /**
     * 供应商联系方式
     */
    @Schema(description = "供应商联系方式")
    private String telephone;

    /**
     * 供应商地址
     */
    @Schema(description = "供应商地址")
    private String address;

    /**
     * 开户行
     */
    @Schema(description = "开户行")
    private String bankDeposit;

    /**
     * 银行账号
     */
    @Schema(description = "银行账号")
    private String bankAccount;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 图片
     */
    @Schema(description = "图片")
    private String image;

    /**
     * 文件
     */
    @Schema(description = "文件")
    private String file;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 删除标记[0未删除，1已删]
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "删除标记[0未删除，1已删]")
    private String delFlag;

    /**
     * 租户号
     */
    @Schema(description = "租户号")
    private Long tenantId;
}